package io.renren.modules.reception.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import io.renren.modules.reception.entity.vo.FoodVo;
import io.renren.modules.reception.entity.vo.PayVo;
import lombok.Data;

/**
 * 
 * 
 * @author steakliu
 * @email 2319492349@qq.com
 * @date 2021-03-02 13:26:00
 */
@Data
@TableName("t_store_takeout_record")
public class TStoreTakeoutRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 订单ID
	 */
	private String takeoutId;

	//找零
	private Double zero;
	//
	private Double wipeZero;
	//支付集合
	@TableField(exist = false)
	private List<PayVo> payVo = new ArrayList<>();
	/**
	 * 租户
	 */
	private Long sellerId;
	/**
	 * 配送员工
	 */
	private Long staffId;

	@TableField(exist = false)
	private String staffName;

	@TableField(exist = false)
	private Integer paySign;

	@TableField(exist = false)
	private Boolean directPayFlag;
	/**
	 * 总价
	 */
	private Double totalMoney;
	/**
	 * 折后价
	 */
	private Double discountMoney;
	/**
	 * 份数
	 */
	private Integer number;
	/**
	 * 联系人
	 */
	private String linkMan;
	/**
	 * 联系电话
	 */
	private String linkTel;
	/**
	 * 配送地址
	 */
	private String address;
	/**
	 * 时间
	 */
	private Date time;
	/**
	 * 配送状态
	 */
	private Integer status;
	/**
	 * 实收
	 */
	private Double reallyGet;

	@TableField(exist = false)
	private String createUserName;
	/**
	 * 挂账单位
	 */
	private Long accountId;
	@TableField(exist = false)
	private String accountUnitName;
	@TableField(exist = false)
	private String memberNick;
	@TableField(exist = false)
	private String memberName;
	@TableField(exist = false)
	private String memberCardNo;
	@TableField(exist = false)
	private Long memberTypeId;

	/**
	 * 折扣
	 */
	private Double discount;
	/**
	 * 会员
	 */
	private Long memberId;
	/**
	 * 支付方式
	 */
	private String payMethodName;
	/**
	 * 菜品集合
	 */
	private String foodVo;

	@TableField(exist = false)
	private List<FoodVo> foodVos = new ArrayList<>();
	/**
	 * 备注
	 */
	private String remark;

}
